'''
Created on 06/10/2011

@author: Rocio
'''
from clasesPrincipales.Instruccion import Instruccion
from clasesPrincipales.Kernel import Kernel
from clasesPrincipales.Programa import Programa



prog = Programa( [Instruccion(Instruccion.CPU, 2), Instruccion(Instruccion.IO, 5), Instruccion(Instruccion.CPU, 4)])
prog1 = Programa([Instruccion(Instruccion.IO, 5), Instruccion(Instruccion.CPU, 2), Instruccion(Instruccion.IO, 2), Instruccion(Instruccion.CPU, 4)])

kernel = Kernel()
    
kernel.start()
kernel.run(prog)
    
kernel.run(prog1)
    
    # time.sleep(5)
    
kernel.run(prog)
kernel.run(prog)
    

